package com.sxbbc.common.core.mapper.jz;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sxbbc.common.core.entity.jz.ChickenFund;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sxbbc.common.core.utils.BasePage;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 基金表 Mapper 接口
 * </p>
 *
 * @author
 * @since 2020-04-26
 */
public interface ChickenFundMapper extends BaseMapper<ChickenFund> {

    List<ChickenFund> selectReleaseFund();

    int releaseFund(@Param("list") List<String> paycodes);

    IPage<ChickenFund> selectChickenFundList(BasePage<ChickenFund> page, @Param("param") ChickenFund chickenFund);

    int setTime();

    BigDecimal queryTotalFundByDate(@Param("startTime") String startTime, @Param("endTime") String endTime);

    int handleLaterDay(@Param("list") List<Integer> ids, @Param("laterday") Integer day);

    List<ChickenFund> handleReleaseFund();
}
